package com.yunding.house.service;


import com.yunding.house.pojo.User;
import com.yunding.house.pojo.Wxuser;

import java.util.List;

/**
 * <p>
 * 用户登录账户表 服务类
 * </p>
 *
 * @author linyang
 * @since 2019-08-15
 */
public interface UserService {

    /**
     * 获取所有用户
     * @return
     */
    List<User> findAll();

    /**
     * 保存
     * @param user
     * @return
     */
    boolean save(User user);

    /**
     * 更新
     * @param user
     * @return
     */
    boolean update(User user);


    /**
     * invitationCode查找user
     * @return
     */
    User selectByinvcode(String invitationCode);

    /**
     * openid查找user
     * @return
     */
    User selectByopenid(String openid);

    /**
     * username查找user
     * @return
     */
    User selectByusername(String username);


}
